package com.systop.score.service.impl;

import com.systop.common.pojo.Score;
import com.systop.common.util.CommonResult;
import com.systop.score.mapper.ScoreMapper;
import com.systop.score.service.ScoreService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Slf4j
@Transactional(rollbackFor = Exception.class)
public class ScoreServiceImpl implements ScoreService {

    @Autowired
    private ScoreMapper scoreMapper;

    @Override
    public CommonResult findScoreByscid(String s_no, Integer c_id) {
        Score scoreByscid = scoreMapper.findScoreByscid(s_no, c_id);
        return new CommonResult(200,"ok",1,scoreByscid);
    }
}
